
<!DOCTYPE html>
<html>
<body>

<?php
$a1=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow");
$a2=array("a"=>"purple","b"=>"orange");

var_dump($a1);

array_splice($a1,2,1);

var_dump($a1);
?>

</body>
</html>